package cn.kxm.service;


import java.util.Date;
import java.util.List;
import java.util.Map;

import cn.kxm.pojo.PurchaseOrderBill;

public interface PurchaseOrderBillService {
	public List<Map<String, Object>> getPurchaseOrderBillByCompanyName(String CompanyName,Integer page,Integer size,Date fromDate,Date endDate,
			String code);
	public int getPurchaseOrderBillByCompanyNameCount(String CompanyName,
            Date fromDate,Date endDate,String code);
	List<PurchaseOrderBill>getAll(PurchaseOrderBill purchaseOrderBill,Integer currentPageNo,
			Integer pageSize);
	/**
	 * 根据条件查询订单数量
	 * @param purchaseOrderBill
	 * @return
	 */
	int getPurchaseOrderBillCount(PurchaseOrderBill purchaseOrderBill);
	/**
	 * 根据code查询信息
	 * @param code
	 * @return
	 */
	PurchaseOrderBill getByCode(String code);
	/**
	 * 添加采购订单
	 * @param purchaseOrderBill
	 * @return
	 */
	int addPurchaseOrderBillCount(PurchaseOrderBill purchaseOrderBill);
	/**
	 * 修改采购
	 * @param purchaseOrderBill
	 * @return
	 */
	int modifyPurchaseOrderBill(PurchaseOrderBill purchaseOrderBill);
	/**
	 * 删除采购订单
	 * @param code
	 * @return
	 */
	int delPurchaseOrderBill(String code);
	/**
	 * 修改采购订单入库状态
	 */
	public int updateOrderInstroageStatus(List<String> codes,Integer statusNum);
	
	public int modifyPurchaseOrderBillByCode_checkStatus(String code,Integer checkStatus);
}
